#include "sequential_table.h"

void SequentialTableDemo(void)
{
    SeqList_t studentInfoList = {};
    SeqListInit(&studentInfoList, 5);
    Node_t node[3] = {
        {"ZhangMing", "man", "2025010101", "138****1234"},
        {"LiSiqi", "woman", "2025010203", "159****5678"},
        {"WangHaoran", "man", "2025020105", "186****9012"},
    };

    for (int i = 0; i < 3; i++) {
        SeqListInsert(&studentInfoList, i, &node[i]);
    }
    SeqListPrint(&studentInfoList);
    Node_t deleteNode;
    SeqListDelete(&studentInfoList, 2, &deleteNode);
    SeqListPrint(&studentInfoList);
}